// Service实现类
package com.ruoyi.project.system.service.impl;

import com.ruoyi.project.system.domain.MedicineSimple;
import com.ruoyi.project.system.mapper.MedicineMapper;
import com.ruoyi.project.system.service.IMedicineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;

@Service
public class MedicineServiceImpl implements IMedicineService {

    @Autowired
    private MedicineMapper medicineMapper;

    @Override
    public List<MedicineSimple> getMedicinesByDepartment(String department) {
        return medicineMapper.selectMedicinesByDepartment(department);
    }
    @Override
    public List<MedicineSimple> searchMedicines(Map<String, Object> params) {
        return medicineMapper.searchMedicines(params);
    }
}